import {
  BubbleStateOptionType,
  AnnularResponseType,
  RadarInitType,
  indicatorType,
  VersionDistributionResponseType,
} from "@/types/echartInterface";
import { operateReducerInitStateType } from "@/types/reducer";
export const initialBubbleState: BubbleStateOptionType = {
  dataNetworkStrength: [],
  dataOfflineTimes: [],
  colorList: [],
  legendList: [],
};

export const initialAnnularState: AnnularResponseType = {
  annularList: [
    {
      value: 0,
      name: "水冷空调",
    },
    {
      value: 0,
      name: "VRV空调",
    },
    {
      value: 0,
      name: "其他空调",
    },
  ],
  colorList: {
    水冷空调: ["#4292FF", "#7DBAFF"],
    VRV空调: ["#207e8e", "#5ddeE6"],
    其他空调: ["#FFB400", "#FFC900"],
  },
};

export const initialRadarState: RadarInitType = {
  radarList: [],
};

export const initialIndicatorList: indicatorType[] = [
  { name: "南京", max: 20000 },
  { name: "苏州", max: 20000 },
  { name: "无锡", max: 20000 },
  { name: "常州", max: 20000 },
  { name: "镇江", max: 20000 },
  { name: "扬州", max: 20000 },
  { name: "南通", max: 20000 },
  { name: "泰州", max: 20000 },
  { name: "徐州", max: 20000 },
  { name: "连云港", max: 20000 },
  { name: "淮安", max: 20000 },
  { name: "盐城", max: 20000 },
  { name: "宿迁", max: 20000 },
];
export const MultiBarcolorList:Array<string>[] = [
  ["#04CC70", "#79EFB9"],
  ["#B9F8FF", "#00BCBE"],
  ["#B5EBFF", "#00BBFF"],
  ["#FFEBA4", "#FFC600"],
  ["#CE9FFC", "#7367F0"],
  ["#FEB692", "#EA5455"],
  ["#FDEB71", "#F8D800"],
  ["#90F7EC", "#32CCBC"],
  ["#FCCF31", "#F55555"],
  ["#FFF3B0", "#CA26FF"],
  ["#79F1A4", "#0E5CAD"],
  ["#3B2667", "#BC78EC"]
];

export  const lineColorList:string[] = [
  "#32C5FF",
  "#FA6400",
  "#F7B500",
  "#F067B4",
  "#9456F7",
  "#32C5FF",
  "#BC9609",
  "#C01500",
  "#A067B4",
];

export const operateReducerInitState: operateReducerInitStateType = {
  times: "",
  EquipAccessNum: 0,
  EquipfilNum: 0,
  containerList: [],
  fragramList: [],
};

export const versionDistributionReducerInitState: VersionDistributionResponseType =
  {
    times: "",
    equipDist: {
      xData: [],
      seriesData: [],
    },
    containerDist: {
      legendData: [],
      xData: [],
      seriesData: [
        {
          name: "",
          list: [],
        },
      ],
    },
  };
